package com.ruoyi.finance.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.statistics.mapper.FiStatisticsMapper;
import com.ruoyi.finance.statistics.domain.FiStatistics;
import com.ruoyi.finance.statistics.service.IFiStatisticsService;

/**
 * 统计Service业务层处理
 * 
 * @author wangmh
 * @date 2023-09-17
 */
@Service
public class FiStatisticsServiceImpl implements IFiStatisticsService 
{
    @Autowired
    private FiStatisticsMapper fiStatisticsMapper;

    /**
     * 查询统计
     * 
     * @param id 统计主键
     * @return 统计
     */
    @Override
    public FiStatistics selectFiStatisticsById(Long id)
    {
        return fiStatisticsMapper.selectFiStatisticsById(id);
    }

    /**
     * 查询统计列表
     * 
     * @param fiStatistics 统计
     * @return 统计
     */
    @Override
    public List<FiStatistics> selectFiStatisticsList(FiStatistics fiStatistics)
    {
        return fiStatisticsMapper.selectFiStatisticsList(fiStatistics);
    }

    /**
     * 新增统计
     * 
     * @param fiStatistics 统计
     * @return 结果
     */
    @Override
    public int insertFiStatistics(FiStatistics fiStatistics)
    {
        return fiStatisticsMapper.insertFiStatistics(fiStatistics);
    }

    /**
     * 修改统计
     * 
     * @param fiStatistics 统计
     * @return 结果
     */
    @Override
    public int updateFiStatistics(FiStatistics fiStatistics)
    {
        return fiStatisticsMapper.updateFiStatistics(fiStatistics);
    }

    /**
     * 批量删除统计
     * 
     * @param ids 需要删除的统计主键
     * @return 结果
     */
    @Override
    public int deleteFiStatisticsByIds(Long[] ids)
    {
        return fiStatisticsMapper.deleteFiStatisticsByIds(ids);
    }

    /**
     * 删除统计信息
     * 
     * @param id 统计主键
     * @return 结果
     */
    @Override
    public int deleteFiStatisticsById(Long id)
    {
        return fiStatisticsMapper.deleteFiStatisticsById(id);
    }
}
